/*
 *
 */

#ifndef WINDOW_LAYOUT_H
#define WINDOW_LAYOUT_H

#include "gkt_widget.h"

#ifdef GKT_CONFIG_WINDOW_NORMAL_ROWS
#define WINDOW_NORMAL_ROWS	GKT_CONFIG_WINDOW_NORMAL_ROWS
#else
#define WINDOW_NORMAL_ROWS	4
#endif

/* WIDGET WIDTH */
#define WINDOW_WIDGET_DEFAULT_WIDTH	\
	GKT_SCREEN_WIDTH

/* WIDGET HEIGHT */
#define WINDOW_WIDGET_NORMAL_HEIGHT	\
	(GKT_SCREEN_HEIGHT / WINDOW_NORMAL_ROWS)
#define WINDOW_WIDGET_LARGE_HEIGHT	\
	((WINDOW_WIDGET_NORMAL_HEIGHT * 3) / 2)
#define WINDOW_WIDGET_EXTRA_LARGE_HEIGHT	\
	(WINDOW_WIDGET_NORMAL_HEIGHT * 2)

/* FONT SIZE */
#define WINDOW_FONT_NORMAL_SIZE	\
	(WINDOW_WIDGET_NORMAL_HEIGHT - (GKT_WIDGET_BORDER_WIDTH * 2))
#define WINDOW_FONT_LARGE_SIZE	\
	(WINDOW_WIDGET_LARGE_HEIGHT - (GKT_WIDGET_BORDER_WIDTH * 4))
#define WINDOW_FONT_EXTRA_LARGE_SIZE	\
	(WINDOW_WIDGET_EXTRA_LARGE_HEIGHT - (GKT_WIDGET_BORDER_WIDTH * 4))

#define WINDOW_FONT_NORMAL_SIZE_ALIGNED	\
	((WINDOW_FONT_NORMAL_SIZE + 7) & (~7))
#define WINDOW_FONT_LARGE_SIZE_ALIGNED	\
	((WINDOW_FONT_LARGE_SIZE + 7) & (~7))
#define WINDOW_FONT_EXTRA_LARGE_SIZE_ALIGNED	\
	((WINDOW_FONT_EXTRA_LARGE_SIZE + 7) & (~7))

#endif	/* WINDOW_LAYOUT_H */

